var connect = require('connect');
var http = require('http');
var cookieSession = require('cookie-session');
var compression = require('compression');
var bodyParser = require('body-parser');
var app = connect();
var http = require('http');

app.use(compression());

app.use(cookieSession({
    keys: ['secret1', 'secret2']
}));

app.use(bodyParser.urlencoded({
    extended: false
}));

app.use(function(req, res){
    res.end(`Hello from Connect!\n`);
});

app.listen(3000);